package Student;

public class Student {
    private String name;//姓名
    private int age;//年龄
    private String sex;//性别
    private static String classroom="高三四班";//教室
    public void sleep () {
        System.out.println(name+"上课");
    }
    public void eat () {
        System.out.println(name+"吃饭");
    }
public void print() {
    System.out.println(name+" "+age+" "+sex+" "+classroom);
}
    public Student(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
}
class Main {

    public static void main(String[] args) {

    }





    public static void main1(String[] args) {
        // Student s1=new Student("小明",18,"男");
        //System.out.println(Student.classroom);
    }

    public static void main2(String[] args) {
        Student s1 = new Student("小明", 18, "男");
        Student s3 = new Student("小王", 17, "男");
        Student s2 = new Student("小张", 19, "女");
        System.out.println("=========");
    }
}